package com.qianli.dao;




import com.qianli.dao.core.BaseDao;
import com.qianli.pojo.Group;
import com.qianli.pojo.User;


public class GroupDao extends BaseDao<Group,String>{
	
	public void del(String id){	
		
		 Group g=(Group) getSession().get(Group.class, id);
		 getSession().delete(g);
	
	}
	public Group update(String id,String name){
		 Group g=(Group) getSession().get(Group.class, id);
		 g.setName(name);
		 getSession().update(g);
		return g;
	
	}
}
